#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-

import sys
import os
import json

import shutil
import zipfile
import time
from Template.BasicTemplate import *
from Common import *
# 当前路径
# .....python_test/MakeScript
currentpath = os.getcwd()


class HandGestureTemplate(BasicTemplate):
    TemplateName = u"手势"
    def __init__(self, *zipfilepath):
        BasicTemplate.__init__(self, *zipfilepath)
        
        self.SpecificResourcePath = [currentpath+"/Package/HandGestureResource"]
        self.srcContentFilePath = currentpath+"/Template/HandGestureTemplate/HandGestureTemplate.b612"

    def CreateIndexAndMetadataJson(self):
        indexContent = ""
        indexContent = getSrcContent(self.srcContentFilePath, "<p1>")
        
        writeSymbolContentToLua(self.outputpath,indexContent)
        return indexContent

